package com.allbluefish.learn.thread;

import com.allbluefish.learn.model.Plate;

public class AddEggThread extends Thread {
	private Plate plate;
	private Object egg = new Object();

	public AddEggThread(Plate plate) {
		this.plate = plate;
	}

	public void run() {
		for (int i = 0; i < 5; i++) {
			this.plate.putEgg(this.egg);
		}
	}

}
